#!/usr/bin/perl

use warnings;
use strict;

open (SAMPLE, "sample.file");

my $i = 1;
foreach (<SAMPLE>) {
    if ( /(.*):(408-.*):.*:.*:.*/ ) {
        printf "%s's telephone number is $2.\n", $1, $2;
    }
}

close SAMPLE;
